<script type="text/javascript">
$(document).ready(function(){s_i_init();});
</script>
<div>
	<img class="ui small image s_i_preview">
</div>
<div class="description s_i_desc">请选择上传一个图片</div>
<br />
<div class="ui compact menu">
	<a class="item s_cropper_updated s_i_cut" onClick="edit($(this))">
		<i class="cut icon"></i>
		裁剪
	</a>
	<a class="item s_cropper_update" onClick="if($(this).hasClass('disabled'))return;$('#s_i_input_updater').click();">
		<i class="cloud upload icon"></i>
		上传
	</a>
	<a class="item s_cropper_editing" onClick="if($(this).hasClass('disabled'))return;s_i_reload();">
		<i class="undo alternate icon"></i>
		重置
	</a>
</div>
<div class="ui compact menu">
	<a class="item s_i_confirm s_cropper_updated s_i_zoom" onClick="s_i_toogle_zoom()">
		<i class="s_i_zoom_icon zoom-in icon"></i>
		缩放
	</a>
	<a class="item s_i_confirm s_cropper_updated" onClick="s_i_confirm()">
		<i class="save icon"></i>
		确定
	</a>
	<a class="item s_i_cancel" onClick="s_i_refresh()">
		<i class="save icon"></i>
		取消
	</a>
</div>
<form method="post" style="display: none;" class="fileajaxform" url="index.php?mod=home&childmod=home&ajax=true&op=general_image_update" enctype="multipart/form-data">
	<input type="hidden" name="requestType" value="form_post">
	<div class="ui icon header">
		<input style="display: none" accept="image/*" type="file" name="file" id="s_i_input_updater" onchange="dealImage()">
	</div>
</form>
